<template>
  <div class="hotspotinfo">
    <h1>{{message.title}}</h1>
  </div>
</template>
<script>
export default {
  data: () => ({
    message: "",
  }),
  created() {
    this.getList();
  },
  methods: {
    async getList() {
      try {
        const {
          data: { result },
        } = await this.Api.getHotspotlist();
        this.message = result[0];
        console.log(this.message);
      } catch (error) {
        console.log(error.message);
      }
    },
  },
};
</script>
<style lang="less" scoped>
</style>